package com.mate.cloud.sensitive.domain;

import com.mate.cloud.sensitive.annotation.Sensitive;
import com.mate.cloud.sensitive.enums.SensitiveTypeEnum;
import lombok.Data;


@Data
public class User {

    @Sensitive(type = SensitiveTypeEnum.NAME)
    private String name;

    @Sensitive(type = SensitiveTypeEnum.ID_CARD)
    private String idCard;

    @Sensitive(type = SensitiveTypeEnum.MOBILE_PHONE)
    private String mobilePhone;

    @Sensitive(type = SensitiveTypeEnum.CUSTOMER, prefixNoMaskLen = 3, suffixNoMaskLen = 2, symbol = "#")
    private String address;

    @Sensitive(prefixNoMaskLen = 1, suffixNoMaskLen = 2, symbol = "*")
    private String password;
}
